export enum GrouponStatus {
  Inactive = 0,
  Active = 1,
}

export enum ApplicableType {
  All = 1,
  Store = 2,
  Venue = 3,
}

export interface Groupon {
  id: number;
  name: string;
  description: string;
  original_price: number; // 原价 (分)
  price: number; // 团购价 (分)
  stock: number; // 库存
  valid_from: number; // 有效期开始时间戳
  valid_to: number; // 有效期结束时间戳
  status: GrouponStatus;
  applicable_type: ApplicableType;
  applicable_ids: string; // 逗号分隔的ID字符串
  created_at: number;
  updated_at: number;
}

export interface GrouponQuery {
  page?: number;
  pageSize?: number;
  keyword?: string;
  status?: GrouponStatus;
}

export interface GrouponListData {
  list: Groupon[];
  total: number;
}